<extend name="Common@Layout:hui-admin" />
<block name="title"><title>编辑权限</title></block>
<block name="style">
</block>

<block name="main">
<nav class="breadcrumb">
	<i class="Hui-iconfont"></i>
	 首页 <span class="c-gray en">&gt;</span>
	 用户设置 <span class="c-gray en">&gt;</span>  
	用户信息
	<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a>
</nav>
<div class="pd-20">
	<form action="{:U('editinfo_post')}" method="post" class="form form-horizontal validator_form close-dialog">
		<div class="row cl mb-20">
	  		<div class="col-2 form-label">头像:</div>
			<div class="col-8 formControls" style="margin-top:3px;">
				<img src="{$info.avater}" width="100" height="100" border="0"/>
				<a class="btn btn-primary radius" href="javascript:;" onclick="open_iframe_dialog('{:U('users/head/index')}','设置头像',['800px','500px'],1)">设置头像</a> 
			</div>
	  	</div>
		<div class="row cl mb-20">
	  		<div class="col-2 form-label">用户名:</div>
			<div class="col-5 formControls" style="margin-top:3px;">{$info.username}
			</div>
	  	</div>
	  	<div class="row cl mb-20">
	  		<div class="col-2 form-label">姓名:</div>
			<div class="col-5 formControls"><input type="text" class="input-text radius" value="{$info.realname}" placeholder="姓名"  name="realname">
			</div>
	  	</div>
	  	<div class="row cl mb-20">
	  		<div class="col-2 form-label">英文名:</div>
			<div class="col-5 formControls"><input type="text" class="input-text radius" value="{$info.english}" placeholder="英文名"  name="english">
			</div>
	  	</div>
	  	<div class="row cl mb-20">
	  		<div class="col-2 form-label">手机号码:</div>
			<div class="col-5 formControls" style="margin-top:3px;">{$info.mobile}
			</div>
	  	</div>
	  	<div class="row cl mb-20">
	  		<div class="col-2 form-label">性别:</div>
			<div class="col-5 formControls">
				<div class="skin-minimal">
				  <div class="radio-box">
				    <input type="radio" id="sex-1" name="sex" value="1" <if condition="$info['sex'] eq 1">checked</if>>
				    <label for="sex-1">男</label>
				  </div>
				  <div class="radio-box">
				    <input type="radio" id="sex-2" name="sex" value="2" <if condition="$info['sex'] eq 2">checked</if>>
				    <label for="sex-2">女</label>
				  </div>
				 </div>
			</div>
	  	</div>
	  	<div class="row cl mb-20">
	  		<div class="col-2 form-label">邮箱:</div>
			<div class="col-5 formControls"><input type="text" class="input-text radius" value="{$info.email}" placeholder="邮箱"  name="email" data-rule="email;remote[/users/member/checkemail]">
			</div>
	  	</div>
		<div class="row cl">
			<div class="col-10 col-offset-2">
				<input type="hidden" name="uid" value="{$info.uid}">
				<button type="submit" style="width:200px;" class="btn btn-success radius" id="admin-role-save" name="admin-role-save"><i class="icon-ok"></i> 确定</button>
			</div>
		</div>
	</form>
</div>
</block>

<block name="script">
</block>